using System;
using System.Collections.Generic;
using System.Text;
using Rapier.Kodachi.Shared;

namespace Rapier.Kodachi.Actions
{
    public class SubmitFeedback : Action
    {
        public SubmitFeedback()
            : base(null, "Internal", "Submit Feedback", "Submit feedback to the creators of Kodachi")
        {
            GetImage = delegate() { return System.Drawing.SystemIcons.Information.ToBitmap(); };
        }

        public override bool IsValidDirect(Item directItem)
        {
            return directItem.Properties.ContainsKey("Kodachi") && directItem.Properties["Kodachi"].Equals(true);
        }

        public override void Execute(Item[] directItems, Item[] indirectItems)
        {
            FeedbackWindow fw = new FeedbackWindow();
            fw.Show();
        }
    }
}
